package paleGoldenRod.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface MessagingServiceAsync {
	/**
	 * Updates the frequency of the given unigram.
	 * 
	 * @param s1
	 *            the word
	 */
	public void sendString(String s1, AsyncCallback callback);
	public void getString(AsyncCallback callback);

	/*
	 * =========== Below functions are for Word train ==============
	 * they all start with wt
	 */
	
	/**
	 * the user sends a new word for the sentence
	 * @return number of results
	 */
	public void wtSendNewWord(Integer gameid, String str, AsyncCallback callback);
	
	public void wtJoinGame(Integer gameid, Integer cpeople, String username, AsyncCallback callback);
	
	public void wtGetStatus(Integer gameid, AsyncCallback callback);
	
	public void wtLeaveGame(Integer gameid, String username, AsyncCallback callback);
	
	// public int wtGetStatus(int gameid);
	
	// public void wtLeaveGame(int gameid);
	
	/*
	 * =========== Above functions are for Word train ==============
	 */

	public void endTurn(ArrayList addedLetters, String[] words, int player, AsyncCallback callback);
	public void update(int player, AsyncCallback callback);
	public void getPlayerID(AsyncCallback callback);
}
